﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPiServer.Core;
using EPiServer.Filters;

namespace EPiBoost.Core.Extensions
{
	public static class PageDataCollectionExtensions
	{
		public static PageDataCollection Filter(this PageDataCollection pageDataCollection, IPageFilter filter)
		{
			filter.Filter(pageDataCollection);
			return pageDataCollection;
		}


		public static PageDataCollection AsPageDataCollection(this IEnumerable<IContentData> pageDataEnumerable)
		{
			return new PageDataCollection(pageDataEnumerable);
		}
	}
}
